From: Keir Fraser Date: Fri, 6 Mar 2009 19:10:29 +0000 (+0000) Subject: tboot: Fix return code for S3 integrity X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13994^2~18 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=31e93ebbdd541a9b9bbb08089b663c1201a069d9;p=xen.git tboot: Fix return code for S3 integrity The original patch left in a debug return value from one of the memory integrity checks. This patch returns the correct error code in case of a failure. This was re-tested to ensure that it still passes for the expected case. Signed-off-by: Joseph Cihula --- diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c index ed20e9951f..e259cd5da1 100644 --- a/xen/arch/x86/tboot.c +++ b/xen/arch/x86/tboot.c @@ -450,7 +450,7 @@ int tboot_s3_resume(void) tboot_gen_domain_integrity(g_tboot_shared->s3_key, &mac); if ( mac != domain_mac ) - return 0; /* -3 */ + return -3; return 0; }